<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd" >

<%@ include file="../base/taglibs.jsp" %>
<%@ page session="true"%>

<html>
	<%@ include file="../base/head.jsp" %>

	<body>
		<div id="wrap">
			<%@ include file="../snipped/header.jsp"%>
			
			<div id="content">
				
				<h2>Editace uživatele</h2>
				
				<form:form id="form" method="post" modelAttribute="userRegistrFormBean" action="userSave">
					
					<%@ include file="../snipped/msgErr.jsp" %>
					
					<fieldset>
						<table>
							<tr>
								<td><form:label path="nick">Nick:</form:label></td>
								<td><b><c:out value="${userRegistrFormBean.nick}"/></b></td>
							</tr>
							<tr>
								<td><form:label path="name">Jméno:</form:label></td>
								<td><form:input path="name" /></td>
							<tr>
							<tr>
								<td><form:label path="surname">Příjmení:</form:label></td>
								<td><form:input path="surname" /></td>
							</tr>
							<tr>
								<td><form:label path="email">Email:</form:label></td>
								<td><form:input path="email" /></td>
							</tr>
							<tr>
								<td><form:label path="sign" cssStyle="vertical-align:Top;">Podpis:</form:label></td>
								<td><form:textarea path="sign" cols="85"/></td>
							</tr>
						</table>
					</fieldset>
					<p><button type="submit">Uložit</button><form:input path="nick" cssStyle="visibility:hidden;"/></p>
				</form:form>
				
			</div>
			
			<br />
			<%@ include file="../snipped/footer.jsp"%>
		</div>
	</body>
	
</html>